package Entity;

public class Patient {
    private String name;
    private String birth;
    private String sex;
    private String age;
    private String phone;
    private String contact;
    private String urgently;
    private String assessment;
    private String room;

    public Patient() { }

    @Override
    public String toString() {
        return name + " 出生日期：" + birth + "  性别：" + sex + "  年龄：" + age + "岁  联系方式：" + phone + "\n 紧急联系人：" + contact + "  紧急联系电话：" + urgently + "  房间："  + room;
    }

    public String[] properties(){
        return new String[]{name,birth,sex, age,phone,contact,urgently,room};
    }

    //刚建立档案时不需要有评估，评估可随时填写
    public Patient(String name, String birth, String sex, String age, String phone, String contact, String urgently, String room) {
        this.name = name;
        this.birth = birth;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.contact = contact;
        this.urgently = urgently;
        this.room = room;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getBirth() {
        return birth;
    }
    public void setBirth(String birth) {
        this.birth = birth;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getAge() {
        return age;
    }
    public void setAge(String age) {
        this.age = age;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getContact() {
        return contact;
    }
    public void setContact(String contact) {
        this.contact = contact;
    }
    public String getUrgently() {
        return urgently;
    }
    public void setUrgently(String urgently) {
        this.urgently = urgently;
    }
    public String getAssessment() {
        return assessment;
    }
    public void setAssessment(String assessment) {
        this.assessment = assessment;
    }
    public String getRoom() {
        return room;
    }
    public void setRoom(String room) {
        this.room = room;
    }
}
